import request from "@/utils/request";

// 获取当前登录用户
export const userInfoService = () => request.get('/api/user/userInfo.do')
// 用户登录
export const userLogin =(obj)=>request.get("/api/user/login.do",obj)
// 条件分页查询用户列表
export const userList = (params) => request.get("/api/user/list.do", params);
// 添加用户
export const insertUser = (obj)=>request.post("/api/user/insert.do",obj,{
    headers:{"Content-Type":"application/x-www-form-urlencoded"}
})
// 删除用户
export const deleteUser = (obj)=>request.post("/api/user/deleted.do",obj,{
    headers:{
        "Content-Type":"application/x-www-form-urlencoded"}
})
//更新用户
export  const updateUser = (obj)=>request.post("/api/user/update.do",obj,{
    headers:{"Content-Type":"application/x-www-form-urlencoded"}
})